Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

I don't think you can get both a writer and a stream at the same time

Hi Simon,

Have you found a solution yet?

I'm not sure, but I believe that I somewhere read that you can't get both a writer and a stream at the same time. You have to choose, so maybe you should try the following code instead:

if (IWantAWriter == true) {
var rw = facesContext.getResponseWriter();
rw.write("We have a writer");
} else {
var rs = facesContext.getResponseStream();
rs.write("We have a stream");
}


Feedback response number WEBB7RTC5G created by ~Ted Xanjumilyoni on 05/07/2009

XPages and Java (~George Chugero... 6.May.09)
. . I don't think you can get both a wr... (~Ted Xanjumilyo... 7.May.09)
. . . . No joy (~George Chugero... 8.May.09)
. . . . . . It's sad (~Ted Xanjumilyo... 10.May.09)
. . . . . . . . Agreed (~George Chugero... 11.May.09)
. . . . . . . . . . In case this isn't totally buried..... (~George Chugero... 12.May.09)
. . . . . . . . . . . . Have you a solution? (~Howard Cisluma... 9.Feb.10)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS